home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / agoodw2a / zalvabro.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-10-03  |  6.3 KB  |  228 lines

  1. VERSION 5.00
  2. Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
  3. Begin VB.Form Form2 
  4.    Caption         =   "Gathering Production Browser"
  5.    ClientHeight    =   3195
  6.    ClientLeft      =   165
  7.    ClientTop       =   735
  8.    ClientWidth     =   4680
  9.    Icon            =   "zalvabrowser2.frx":0000
  10.    LinkTopic       =   "Form2"
  11.    ScaleHeight     =   3195
  12.    ScaleWidth      =   4680
  13.    StartUpPosition =   3  'Windows Default
  14.    WindowState     =   2  'Maximized
  15.    Begin VB.Timer Timer2 
  16.       Interval        =   30000
  17.       Left            =   840
  18.       Top             =   2640
  19.    End
  20.    Begin VB.ComboBox Combo1 
  21.       Height          =   315
  22.       Left            =   0
  23.       TabIndex        =   10
  24.       Top             =   600
  25.       Width           =   6735
  26.    End
  27.    Begin VB.Frame Frame1 
  28.       Caption         =   "WorkStationSF - use as a notepade"
  29.       Height          =   1095
  30.       Left            =   6840
  31.       TabIndex        =   8
  32.       Top             =   0
  33.       Width           =   4935
  34.       Begin VB.TextBox Text2 
  35.          Height          =   615
  36.          Left            =   120
  37.          MultiLine       =   -1  'True
  38.          ScrollBars      =   2  'Vertical
  39.          TabIndex        =   9
  40.          Top             =   360
  41.          Width           =   4695
  42.       End
  43.    End
  44.    Begin VB.Timer Timer1 
  45.       Enabled         =   0   'False
  46.       Interval        =   250
  47.       Left            =   1560
  48.       Top             =   7920
  49.    End
  50.    Begin SHDocVwCtl.WebBrowser brw 
  51.       Height          =   6615
  52.       Left            =   0
  53.       TabIndex        =   6
  54.       Top             =   1200
  55.       Width           =   11655
  56.       ExtentX         =   20558
  57.       ExtentY         =   11668
  58.       ViewMode        =   1
  59.       Offline         =   0
  60.       Silent          =   0
  61.       RegisterAsBrowser=   0
  62.       RegisterAsDropTarget=   1
  63.       AutoArrange     =   -1  'True
  64.       NoClientEdge    =   0   'False
  65.       AlignLeft       =   0   'False
  66.       ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
  67.       Location        =   ""
  68.    End
  69.    Begin VB.CommandButton Command6 
  70.       Caption         =   "Home"
  71.       Height          =   495
  72.       Left            =   4800
  73.       TabIndex        =   5
  74.       TabStop         =   0   'False
  75.       Top             =   0
  76.       Width           =   975
  77.    End
  78.    Begin VB.CommandButton Command5 
  79.       Caption         =   "Search"
  80.       Height          =   495
  81.       Left            =   3840
  82.       TabIndex        =   4
  83.       TabStop         =   0   'False
  84.       Top             =   0
  85.       Width           =   975
  86.    End
  87.    Begin VB.CommandButton Command4 
  88.       Caption         =   "Refresh"
  89.       Height          =   495
  90.       Left            =   2880
  91.       TabIndex        =   3
  92.       TabStop         =   0   'False
  93.       Top             =   0
  94.       Width           =   975
  95.    End
  96.    Begin VB.CommandButton Command3 
  97.       Caption         =   "Stop"
  98.       Height          =   495
  99.       Left            =   1920
  100.       TabIndex        =   2
  101.       TabStop         =   0   'False
  102.       Top             =   0
  103.       Width           =   975
  104.    End
  105.    Begin VB.CommandButton Command2 
  106.       Caption         =   "Forward"
  107.       Height          =   495
  108.       Left            =   960
  109.       TabIndex        =   1
  110.       TabStop         =   0   'False
  111.       Top             =   0
  112.       Width           =   975
  113.    End
  114.    Begin VB.CommandButton Command1 
  115.       Caption         =   "Back"
  116.       Height          =   495
  117.       Left            =   0
  118.       TabIndex        =   0
  119.       TabStop         =   0   'False
  120.       Top             =   0
  121.       Width           =   975
  122.    End
  123.    Begin SHDocVwCtl.ShellFolderViewOC ShellFolderViewOC1 
  124.       Left            =   2280
  125.       Top             =   5040
  126.    End
  127.    Begin VB.Label Label1 
  128.       Height          =   255
  129.       Left            =   0
  130.       TabIndex        =   7
  131.       Top             =   8040
  132.       Width           =   1455
  133.    End
  134.    Begin VB.Line Line1 
  135.       X1              =   0
  136.       X2              =   11880
  137.       Y1              =   7920
  138.       Y2              =   7920
  139.    End
  140.    Begin VB.Menu file 
  141.       Caption         =   "File"
  142.       Begin VB.Menu quit 
  143.          Caption         =   "Quit"
  144.       End
  145.    End
  146.    Begin VB.Menu df 
  147.       Caption         =   "?"
  148.       Begin VB.Menu help 
  149.          Caption         =   "Help"
  150.       End
  151.    End
  152. Attribute VB_Name = "Form2"
  153. Attribute VB_GlobalNameSpace = False
  154. Attribute VB_Creatable = False
  155. Attribute VB_PredeclaredId = True
  156. Attribute VB_Exposed = False
  157. Dim p As Integer
  158. Private Sub brw_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
  159. Combo1.Text = brw.LocationURL
  160. End Sub
  161. Private Sub brw_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
  162. If Label1.Caption = ">>>>>>>>>>>>>>>>" Then Label1.Caption = ""
  163. Label1.Caption = Label1.Caption + ">"
  164. End Sub
  165. Private Sub brw_TitleChange(ByVal Text As String)
  166. Form2.Caption = "Gathering Production Browser" & " - " & brw.LocationName
  167. End Sub
  168. Private Sub Command1_Click()
  169. On Error Resume Next
  170. brw.GoBack
  171. End Sub
  172. Private Sub Command2_Click()
  173. On Error Resume Next
  174. brw.GoForward
  175. End Sub
  176. Private Sub Command3_Click()
  177. brw.Stop
  178. End Sub
  179. Private Sub Command4_Click()
  180. brw.Refresh
  181. End Sub
  182. Private Sub Command5_Click()
  183. brw.GoSearch
  184. End Sub
  185. Private Sub Command6_Click()
  186. brw.GoHome
  187. End Sub
  188. Private Sub Command7_Click()
  189. Form3.Show
  190. End Sub
  191. Private Sub Form_Load()
  192. brw.GoHome
  193. p = 1
  194. End Sub
  195. Private Sub combo1_KeyDown(KeyCode As Integer, Shift As Integer)
  196. If KeyCode = vbKeyReturn Then
  197. brw.Navigate Combo1.Text
  198. Combo1.AddItem Combo1.Text
  199. End If
  200. End Sub
  201. Private Sub Form_Unload(Cancel As Integer)
  202. End Sub
  203. Private Sub norm_Click()
  204. Form1.Show
  205. Unload Form2
  206. End Sub
  207. Private Sub quit_Click()
  208. Unload Me
  209. End Sub
  210. Private Sub Text2_dblclick()
  211. Text2.Text = ""
  212. End Sub
  213. Private Sub Timer1_Timer()
  214. If Label1.Caption = ">>>>>>>>>>>>>>>>" Then Label1.Caption = ""
  215. Label1.Caption = Label1.Caption + ">"
  216. End Sub
  217. Private Sub Timer2_Timer()
  218. If p = 3 Then p = 1
  219. If p = 1 Then
  220. brw.Navigate ("http://www.yahoo.com")
  221. p = p + 1
  222. End If
  223. If p = 2 Then
  224. brw.Navigate ("http://www.altavista.com")
  225. p = p + 1
  226. End If
  227. End Sub
  228.